<?php
include_once('admin/php/includes/definer.php');
include_once(INC.'admin/php/bootstrap.php');
include_once(INC.'php/checkers/language.checker.php');
?>
<!DOCTYPE html>
<!--[if IE 8]> 				 <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
        <title><?php echo($language->accesoClientes); ?> | Tower Technology</title>

        <link rel="stylesheet" href="<?php echo(URL); ?>stylesheets/normalize.css" />
        <link rel="stylesheet" href="<?php echo(URL); ?>stylesheets/app.css" />
        <script src="<?php echo(URL); ?>admin/php/includes/definer.js" type="text/javascript"></script>
        <script src="<?php echo(URL); ?>javascripts/vendor/custom.modernizr.js"></script>

    </head>
    <body>
        <!-- BOTONERA -->
        <?php include_once('tpl/nav.php'); ?>
        <?php include_once('tpl/nav-mobile.php'); ?>
        <!-- FIN BOTONERA -->

        <section id="la-empresa">
            <form action="<?php echo(URL); ?>php/controllers/clientes.controller.php" method="post" id="form-web">
                
                <div class="row">
                    <div class="data-wrapper hide" id="successCuit">
                        <div class="alert-box success hide">
                            <?php echo($language->cuitSuccess); ?>
                            <a href="" class="close">&times;</a>
                        </div>
                    </div>
                    <div class="data-wrapper hide" id="errorCuit">
                        <div class="alert-box alert hide">
                            <?php echo($language->cuitError); ?>
                            <a href="" class="close">&times;</a>
                        </div>
                    </div>
                    <div class="large-6 large-centered columns">
                        <p style="text-align: center"><?php echo($language->leyendaCuit);  ?></p>
                        <div class="panel">
                            <label for="cuit">CUIT</label>
                            <input type="text" id="cuit" name="cuit" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="large-2 large-centered columns">
                        <input type="submit" name="ingresar" id="acceder" class="button" value="<?php echo($language->acceder);  ?>" />
                    </div>
                </div>
            </form>
        </section>

        <!-- FOOTER -->
        <?php include_once('tpl/footer.html'); ?>
        <!-- FIN FOOTER -->

        <script>
            document.write('<script src=' +
                    ('__proto__' in {} ? '<?php echo(URL); ?>javascripts/vendor/zepto' : '<?php echo(URL); ?>javascripts/vendor/jquery') +
                    '.js><\/script>')
        </script>

        <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.alerts.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.clearing.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.cookie.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.dropdown.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.forms.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.joyride.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.magellan.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.orbit.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.placeholder.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.reveal.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.section.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.tooltips.js"></script>

        <script src="<?php echo(URL); ?>javascripts/foundation/foundation.topbar.js"></script>

        <script src="<?php echo(URL); ?>javascripts/validate/jquery.validate.js"></script>
        
        <script src="<?php echo(URL); ?>javascripts/buscar.js"></script>

        <script>
            $(document).foundation();
            $(document).ready(function() {
                $("#form-web").validate({
                    rules: {
                        cuit: {
                            required: true
                        }
                    },
                    submitHandler: function($form) {
                        progressBar()
                        $form.submit();
                    }
                });
                
                if (location.hash == '#success') {
                    $('#successCuit').show();
                }
                if (location.hash == '#error') {
                    $('#errorCuit').show();
                }
            });
        </script>
    </body>
</html>
